﻿using CsvHelper.Configuration.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataAchive.Model.Excel.Export
{
    public class LocalSmallReportAll
    {

        
        [Name("窗口类型")]
        [Description("窗口类型")]
        public string WindowType { get; set; }

        [Ignore]
        [Name("Barcode")]
        [Description("Barcode")]
        public string Barcode { get; set; }

        [Name("机器号")]
        [Description("机器号")]
        public string MachineId { get; set; }

        [Ignore]     
        public DateTime CreateTime { get; set; }


        [Name("记录时间")]
        [Description("记录时间")]
        public string CreateTimeStr
        {
            get
            {
                if (CreateTime == DateTime.MinValue)
                {
                    return "";
                }
                return CreateTime.ToString();
            }
            set { }
        }

        [Name("条码")]
        [Description("条码")]
        public string SaveBarcode { get; set; }

        [Name("Ai缺陷")]
        [Description("Ai缺陷")]
        public string AiDefects { get; set; }

    }



    public class SmallReportRowCol
    {

        [Ignore]
        [Name("Barcode")]
        [Description("Barcode")]
        public string Barcode { get; set; }

        [Name("机器号")]
        [Description("机器号")]
        public string MachineId { get; set; }

        [Ignore]
        public DateTime CreateTime { get; set; }


        [Name("记录时间")]
        [Description("记录时间")]
        public string CreateTimeStr
        {
            get
            {
                if (CreateTime == DateTime.MinValue)
                {
                    return "";
                }
                return CreateTime.ToString();
            }
            set { }
        }

        [Name("条码")]
        [Description("条码")]
        public string SaveBarcode { get; set; }

        [Name("EL缺陷")]
        [Description("EL缺陷")]
        public string ElAiDefects { get; set; }

        [Name("VI缺陷")]
        [Description("VI缺陷")]
        public string ViAiDefects { get; set; }

        [Name("VB缺陷")]
        [Description("VB缺陷")]
        public string VbAiDefects { get; set; }


        [Name("EL检测结果")]
        [Description("EL检测结果")]
        public string ElAiResult { get; set; }

        [Name("VI检测结果")]
        [Description("VI检测结果")]
        public string ViAiResult { get; set; }

        [Name("VB检测结果")]
        [Description("VB检测结果")]
        public string VbAiResult { get; set; }

    }
}
